package com.yjq.blog.article.controller;

import com.yjq.blog.article.dto.ArticleTypeListDTO;
import com.yjq.blog.article.entity.ArticleType;
import com.yjq.blog.article.service.ArticleTypeService;
import io.swagger.annotations.Api;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@Api(tags = "", description = "文章分类")
@RestController
@RequestMapping("/articleType")
public class ArticleTypeController {

    @Resource
    private ArticleTypeService articleTypeService;

    @GetMapping
    public List<ArticleTypeListDTO> listArticleType() {
        return articleTypeService.listArticleType();
    }

}
